package com.youbug.mall.coupon_sms.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.youbug.common.config.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品spu积分设置
 * </p>
 *
 * @author youbug
 * @since 2024-04-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="SmsSpuBounds对象", description="商品spu积分设置")
public class SmsSpuBounds extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long spuId;

    @ApiModelProperty(value = "成长积分")
    private BigDecimal growBounds;

    @ApiModelProperty(value = "购物积分")
    private BigDecimal buyBounds;

    @ApiModelProperty(value = "优惠生效情况[1111（四个状态位，从右到左）;0 - 无优惠，成长积分是否赠送;1 - 无优惠，购物积分是否赠送;2 - 有优惠，成长积分是否赠送;3 - 有优惠，购物积分是否赠送【状态位0：不赠送，1：赠送】]")
    private Integer work;


}
